-- GENERATED SPELL FOR [Archmage Angela Dosantos] --


function spell0_16116(pUnit, Event) --@Arcane Cloaking,n/a--
pUnit:FullCastSpellOnTarget(28006,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16116', 616, 1)
end

function Sorts_16116(pUnit, Event)
local choix_sorts_16116 = math.random(0, 0)
if choix_sorts_16116 == 0 then
pUnit:RegisterEvent('spell0_16116', 1, 1)
end
end

function mob16116_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16116', math.random(1500, 3000), 1)
end

function mob16116_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16116_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16116_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16116, 1, 'mob16116_Action')
RegisterUnitEvent(16116, 2, 'mob16116_Leave')
RegisterUnitEvent(16116, 3, 'mob16116_Kill')
RegisterUnitEvent(16116, 4, 'mob16116_Die')
